/* eslint-disable */
import request from '@/utils/request'

const api_url = '/system/userRole'
/**
 * 根据用户id获取用户角色
 * @param userId
 * @returns {*}
 */
export function getUserRoleByIdApi (userId) {
  return request({
    url: `${api_url}/getUserRoleById/${userId}`,
    method: 'delete',
  })
}

/**
 * 根据用户id获取用户角色
 * @param userId
 * @param userRole
 * @returns {*}
 */
export function updateUserRoleApi (userId,userRole) {
  return request({
    url: `${api_url}/updateUserRole/${userId}`,
    method: 'put',
    data:userRole
  })
}
